package com.hhu.wangzb.common.entity.index;

import java.util.LinkedHashMap;
import java.util.Map;

public class IndexTreeMapper {

    // 键为树根id，值为所引树
    private Map<Integer, EntityIndexTree> treeMap = new LinkedHashMap<>();

    public void put(Integer rootId, EntityIndexTree indexTree) {
        this.treeMap.put(rootId, indexTree);
    }

    public EntityIndexTree get(Integer rootId) {
        return this.treeMap.get(rootId);
    }

}
